package com.xxx.host;
import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.profile.HttpProfile;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;

import com.tencentcloudapi.yunjing.v20180228.YunjingClient;

import com.tencentcloudapi.yunjing.v20180228.models.DescribeBruteAttacksRequest;
import com.tencentcloudapi.yunjing.v20180228.models.DescribeBruteAttacksResponse;

public class DescribeBruteAttacks
{
    public static void main(String [] args)  {
     try {

    	 Credential cred = new Credential("AKIDSjkWBdvoXihSytp0C8qJXWKtFLComJCt", "d3GExQeePvBBwSiiTyEFUUJtEKDsHRM1");
            
            HttpProfile httpProfile = new HttpProfile();
            httpProfile.setEndpoint("yunjing.tencentcloudapi.com");

            ClientProfile clientProfile = new ClientProfile();
            clientProfile.setHttpProfile(httpProfile);            
            
            YunjingClient client = new YunjingClient(cred, "ap-beijing", clientProfile);
            
            String params = "{}";
            DescribeBruteAttacksRequest req = DescribeBruteAttacksRequest.fromJsonString(params, DescribeBruteAttacksRequest.class);
            
            DescribeBruteAttacksResponse resp = client.DescribeBruteAttacks(req);
            
            System.out.println(DescribeBruteAttacksRequest.toJsonString(resp));
     } catch (TencentCloudSDKException e) {
         System.out.println(e.toString());
 }

    }
    
}